package com.mvp.shq.washer.ui.shareApp;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.http.Api;
import com.mvp.shq.washer.http.RxSchedulers;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/24.
 */

public class ShareAppModel implements ShareAppConstract.Model {
    @Override
    public Observable<BaseResult<String>> shareRecord(String userId, String mobile, String type) {
        return Api.getInstance().service
                .shareRecord(userId,mobile,type)
                .compose(RxSchedulers.io_main());
    }

    @Override
    public Observable<BaseResult<Integer>> shareCount(String token, String userId) {
        return Api.getInstance().service
                .shareCount(token,userId)
                .compose(RxSchedulers.io_main());
    }
}
